<template>
  <div class="container">
      <rich-text :nodes="content" :data-nodes="content"></rich-text>
  </div>
</template>

<script>
  import htmlParser from '@/common/js/html-parser';
  export default {
    data() {
      return {
        content: ''
      }
    },
    onLoad() {
      this.getSetting()
    },
    methods: {
      getSetting() {
        this.$api.sendRequest({
          url: '/api/site/info',
          data: {},
          success: res => {
            if(res.code == 0) {
              if (res.data.about) this.content = htmlParser(res.data.about);
              
            }
            
          }
        })
        
      },
    }
  }
</script>

<style lang="scss" scoped>
.indexbg {
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 259rpx;
}

.fixHeader {
  position:fixed;
  top:0;
  z-index: 9;
  width: 100%;
  box-sizing: border-box;
}
</style>
